<script th:replace="authority/common/back/footer"></script>
<script type="text/javascript" th:src="@{/authority/static/ace_editor/ace.js}"></script>
<script type="text/javascript"
        th:src="@{/authority/static/ace_editor/ext-language_tools.js}"></script>
<script type="text/javascript" th:inline="javascript">
    $('body').on('mouseover', '.my-notes .content', function (event) {
        $('.my-notes .my-notes-show').each(function (i, e) {
            $(this).remove();
        });
        $(this).closest('.my-notes').append($('<div class="my-notes-show"></div>').append($('<div class="layui-text"><div>').html($(this).html())));
        //鼠标悬浮
    }).on('mouseout', '.my-notes-show', function (event) {
        //鼠标离开
        $(this).remove();
    });

    function createAce(elemId, mode, theme) {
        var editor = ace.edit(elemId);
        editor.session.setMode(mode);
        editor.setTheme(theme || "ace/theme/katzenmilch");
        editor.setOptions({
            enableBasicAutocompletion: true,
            enableSnippets: true,
            enableLiveAutocompletion: true
        });
        return editor;
    }
</script>